<?
    class Departamento extends BaseModel{
        static $primary_key = 'iddepartamentos';
        static $has_many = array(
            array(
                '_planes',
                'class' => 'Plan',
                'foreign_key' => 'departamento'
            )
        );
        
    }
?>